package cn.wolfcode.luowowo.member.mapper;

import cn.wolfcode.luowowo.member.domain.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserInfo record);

    UserInfo selectByPrimaryKey(Long id);

    List<UserInfo> selectAll();

    int updateByPrimaryKey(UserInfo record);

    int selectUserByPhone(String phone);

    UserInfo selectByPhoneAndPassword(@Param("username") String username, @Param("password") String password);

    void update(UserInfo userInfo);

    void updateheadImg(@Param("path") String path, @Param("id") Long id);

    List<UserInfo> getFromId(Long id);

    List<UserInfo> getFansById(Long id);

    void updatePassWord(@Param("newpassword") String newpassword, @Param("id") Long id);
}